package cn.com.lei.du.service.impl;

import cn.com.lei.du.entity.User;
import cn.com.lei.du.service.UserService;
import org.springframework.stereotype.Component;

@Component
public class UserServiceHystrix implements UserService {
    @Override
    public User findById(String id) {
        User user = new User();
        user.setName("error name");
        return user;
    }

    @Override
    public User addUser(User user) {
        user.setName("error name");
        return user;
    }
}
